package com.toplabs.unashu.mapper;

import com.toplabs.unashu.entity.Type;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ityanger
 * @since 2020-08-23
 */
@Repository
public interface TypeMapper {
    int insertType(Type type);

    Type selectType(Type type);

    List<Type> listTypeBlogCount(Integer pageNum, Integer pageSize);

    List<Type> listType();

    int countType();

    int updateType(Type type);

    int deleteType(Long id);

    void deleteBlogType(Long typeId);
}
